package com.lvhx.springboot;

import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.ImportResource;

@Slf4j
@ImportResource({"classpath:start-config.xml"})
@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)
@MapperScan("com.lvhx.springboot.mapper")
@ComponentScan(basePackages = {"com.lvhx.*"})
public class SpringBatchApplication8087 {
    public static void main(String[] args) {
        ConfigurableApplicationContext context = SpringApplication.run(SpringBatchApplication8087.class, args);
        log.info("《《《《《server start success！！！》》》》》");
    }

}
